package com.crazyhat.crazyhat.dto;

import java.time.LocalDateTime;

import org.hibernate.validator.constraints.URL;

import com.baomidou.mybatisplus.annotation.TableField;
import com.crazyhat.crazyhat.attribute.ApprovalStatusEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 社团加入申请传输对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClubApplicationDTO {
    
    private Integer clubId;

    private Integer applicationId;

    @NotNull
    private Integer studentId;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applyTime;

    /**
     * 审核状态
     */
    @TableField("approval_status")
    private ApprovalStatusEnum approvalStatus;

    /**
     * 用户头像
     */
    @URL
    private String avatarUrl;

    /**
     * 用户名
     */
    private String name;
}
